package cn.wolfcode.luowowo2.common.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.util.HashMap;
import java.util.Map;

/**
 * Created by Albert on 2019/7/11.
 */
@Getter
@Setter
@NoArgsConstructor
public class TravelCondition {
    private Integer min;
    private Integer max;

    public TravelCondition(Integer min, Integer max){
        this.min = min;
        this.max = max;
    }

    public static final Map<Integer,TravelCondition> DAY_TYPE = new HashMap<>();
    public static final Map<Integer,TravelCondition> TRAVLE_MONTH = new HashMap<>();
    public static final Map<Integer,TravelCondition> PER_EXPAND_TYPE = new HashMap<>();


    static{
        DAY_TYPE.put(-1,new TravelCondition(-1,Integer.MAX_VALUE));
        DAY_TYPE.put(1,new TravelCondition(0,3));
        DAY_TYPE.put(2,new TravelCondition(4,7));
        DAY_TYPE.put(3,new TravelCondition(8,14));
        DAY_TYPE.put(4,new TravelCondition(15,Integer.MAX_VALUE));

        TRAVLE_MONTH.put(-1,new TravelCondition(1,12));
        TRAVLE_MONTH.put(1,new TravelCondition(1,2));
        TRAVLE_MONTH.put(2,new TravelCondition(3,4));
        TRAVLE_MONTH.put(3,new TravelCondition(5,6));
        TRAVLE_MONTH.put(4,new TravelCondition(7,8));
        TRAVLE_MONTH.put(5,new TravelCondition(9,10));
        TRAVLE_MONTH.put(6,new TravelCondition(11,12));

        PER_EXPAND_TYPE.put(-1,new TravelCondition(0,Integer.MAX_VALUE));
        PER_EXPAND_TYPE.put(1,new TravelCondition(0,999));
        PER_EXPAND_TYPE.put(2,new TravelCondition(1000,6000));
        PER_EXPAND_TYPE.put(3,new TravelCondition(6001,20000));
        PER_EXPAND_TYPE.put(4,new TravelCondition(20001,Integer.MAX_VALUE));

    }



}
